Generic resource manager, enabling more intelligent processing of resources, compared to the ContentLoader. More...
Generic resource manager, enabling more intelligent processing of resources, compared to the ContentLoader.
void nkGraphics::ResourceManager::loadResourceSetDescFileSync | ( | const ResourceSetLoadQuery & | query, |
ResourceSetLoadResult & | resultRef | ||
) |
Requests to load a resource set, synchronously.
query | The resource set load query. |
resultRef | The result to populate. |
void nkGraphics::ResourceManager::loadResourceSetDescFileAsync | ( | const ResourceSetLoadQuery & | query, |
ResourceSaveLoadCallback * | callback = nullptr |
||
) |
Requests to load a resource set, asynchronously.
query | The resource set load query. |
callback | The callback interface to use. |
void nkGraphics::ResourceManager::saveResourceSetDescFile | ( | const ResourceSetSaveQuery & | query | ) |
Requests to save a resource set, Synchronously.
query | The resource set save query. |
void nkGraphics::ResourceManager::loadCamera | ( | const nkMemory::StringView & | path, |
ResourceSaveLoadCallback * | callback = nullptr |
||
) |
Loads a camera declaration file. Does it asynchronously.
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
void nkGraphics::ResourceManager::loadBlendState | ( | const nkMemory::StringView & | path, |
ResourceSaveLoadCallback * | callback = nullptr |
||
) |
Loads a blend state declaration file. Does it asynchronously.
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
void nkGraphics::ResourceManager::loadDepthStencilState | ( | const nkMemory::StringView & | path, |
ResourceSaveLoadCallback * | callback = nullptr |
||
) |
Loads a depth and stencil state declaration file. Does it asynchronously.
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
void nkGraphics::ResourceManager::loadRasterState | ( | const nkMemory::StringView & | path, |
ResourceSaveLoadCallback * | callback = nullptr |
||
) |
Loads a raster state declaration file. Does it asynchronously.
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
void nkGraphics::ResourceManager::loadSampler | ( | const nkMemory::StringView & | path, |
ResourceSaveLoadCallback * | callback = nullptr |
||
) |
Loads a sampler declaration file. Does it asynchronously.
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
void nkGraphics::ResourceManager::loadTexture | ( | const nkMemory::StringView & | path, |
ResourceSaveLoadCallback * | callback = nullptr |
||
) |
Loads a texture declaration file. Does it asynchronously.
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
void nkGraphics::ResourceManager::loadBuffer | ( | const nkMemory::StringView & | path, |
ResourceSaveLoadCallback * | callback = nullptr |
||
) |
Loads a buffer declaration file. Does it asynchronously.
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
void nkGraphics::ResourceManager::loadShader | ( | const nkMemory::StringView & | path, |
ResourceSaveLoadCallback * | callback = nullptr |
||
) |
Loads a sahder declaration file. Does it asynchronously.
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
void nkGraphics::ResourceManager::loadProgram | ( | const nkMemory::StringView & | path, |
ResourceSaveLoadCallback * | callback = nullptr |
||
) |
Loads a program declaration file. Does it asynchronously.
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
void nkGraphics::ResourceManager::loadMesh | ( | const nkMemory::StringView & | path, |
ResourceSaveLoadCallback * | callback = nullptr |
||
) |
Loads a mesh declaration file. Does it asynchronously.
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
void nkGraphics::ResourceManager::loadCompositor | ( | const nkMemory::StringView & | path, |
const nkMemory::StringView & | compoToDefault = "" , |
||
ResourceSaveLoadCallback * | callback = nullptr |
||
) |
Loads a compositor declaration file. Does it asynchronously.
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
compoToDefault | The default name to set as a default. |
callback | The callback used for resource loading. |
void nkGraphics::ResourceManager::loadNode | ( | const nkMemory::StringView & | path, |
ResourceSaveLoadCallback * | callback = nullptr |
||
) |
Loads a node (scene) declaration file. Does it asynchronously.
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |